package com.beiye.drivertransport.bean;

import java.io.Serializable;
import java.util.List;

/**
 * Created by ky on 2018/1/19.
 */

public class QuestionInvestigationBean {

    /**
     * result : true
     * data : null
     * msg : 操作成功
     * rows : [{"userId":null,"uqpSn":null,"qSn":101,"userOption":"A","rightMark":null,"sn":22,"questionDesc":"测试1","url":"/upload/img/201712221118158687617.jpg","optionA":"测试A","optionB":"测试B","optionC":"测试C","optionD":"测试D","rightOption":null,"score":10,"seqNo":1,"resultCode":null},{"userId":null,"uqpSn":null,"qSn":102,"userOption":"A","rightMark":null,"sn":21,"questionDesc":"驾驶机动车在道路上违反道路交通安全法的行为，属于什么行为？","url":null,"optionA":"过失行为","optionB":"违章行为","optionC":"违法行为","optionD":"违规行为","rightOption":null,"score":10,"seqNo":2,"resultCode":null},{"userId":null,"uqpSn":null,"qSn":103,"userOption":"A","rightMark":null,"sn":23,"questionDesc":"驾驶机动车违反道路交通安全法律法规发生交通事故属于交通违章行为。","url":null,"optionA":"正确","optionB":"错误","optionC":null,"optionD":null,"rightOption":null,"score":10,"seqNo":3,"resultCode":null}]
     * total : 3
     * code : 0
     */

    /**
     * 单项选择题
     */
    public static final int TYPE_Single_Choice = 1;
    /**
     * 判断题
     */
    public static final int TYPE_True_OR_False = 3;
    /**
     * 多项选择题
     */
    public static final int TYPE_Multiple_Choice = 2;

    public static final int TYPE_INPUT=4;

    public static String getQuestionTypeStr(int type){
        switch (type){
            case TYPE_Single_Choice:
                return "单选题";
            case TYPE_True_OR_False:
                return "判断题";
            case TYPE_Multiple_Choice:
                return "多选题";
            case TYPE_INPUT:
                return "填空题";
        }
        return "单选题";
    }

    /**
     * result : true
     * data : {"sn":22,"qnSn":null,"updateDate":1617867100000,"qnTypeId":117001,"relSn":373278,"orgId":"E811DE14-1ED5-4D96-905F-F6697F4B300A","orgName":"万隆货运有限公司","userId":"AF08E713-EB7B-62A1-E053-C1FE1D0AD395","userName":"刘学章","userMobile":"18435224024","idcNo":"410411199612105515","qnTitle":"测试评估问卷","qnDesc":null,"mark":1,"uqItemList":[{"sn":27,"uqnSn":22,"fillType":1,"itemTitle":"课程打分（10分制）","optionA":"1-3","optionB":"4-6","optionC":"6-9","optionD":"10","optionE":null,"optionF":null,"userOption":null,"resultCode":null},{"sn":28,"uqnSn":22,"fillType":1,"itemTitle":"是否需要拍照","optionA":"不需要","optionB":"需要","optionC":null,"optionD":null,"optionE":null,"optionF":null,"userOption":null,"resultCode":null},{"sn":25,"uqnSn":22,"fillType":2,"itemTitle":"希望更新什么功能，可多选","optionA":"找工作","optionB":"买卖车辆","optionC":"学习从业资格证","optionD":"交通运输行业协会","optionE":null,"optionF":null,"userOption":null,"resultCode":null},{"sn":26,"uqnSn":22,"fillType":4,"itemTitle":"是否还需要其他说明","optionA":null,"optionB":null,"optionC":null,"optionD":null,"optionE":null,"optionF":null,"userOption":null,"resultCode":null}],"resultCode":null}
     * msg : null
     * rows : null
     * total : null
     * code : -1
     */

    private boolean result;
    private DataBean data;
    private Object msg;
    private Object rows;
    private Object total;
    private int code;



    public boolean isResult() {
        return result;
    }

    public void setResult(boolean result) {
        this.result = result;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public Object getMsg() {
        return msg;
    }

    public void setMsg(Object msg) {
        this.msg = msg;
    }

    public Object getRows() {
        return rows;
    }

    public void setRows(Object rows) {
        this.rows = rows;
    }

    public Object getTotal() {
        return total;
    }

    public void setTotal(Object total) {
        this.total = total;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }


    public static class DataBean {
        /**
         * sn : 22
         * qnSn : null
         * updateDate : 1617867100000
         * qnTypeId : 117001
         * relSn : 373278
         * orgId : E811DE14-1ED5-4D96-905F-F6697F4B300A
         * orgName : 万隆货运有限公司
         * userId : AF08E713-EB7B-62A1-E053-C1FE1D0AD395
         * userName : 刘学章
         * userMobile : 18435224024
         * idcNo : 410411199612105515
         * qnTitle : 测试评估问卷
         * qnDesc : null
         * mark : 1
         * uqItemList : [{"sn":27,"uqnSn":22,"fillType":1,"itemTitle":"课程打分（10分制）","optionA":"1-3","optionB":"4-6","optionC":"6-9","optionD":"10","optionE":null,"optionF":null,"userOption":null,"resultCode":null},{"sn":28,"uqnSn":22,"fillType":1,"itemTitle":"是否需要拍照","optionA":"不需要","optionB":"需要","optionC":null,"optionD":null,"optionE":null,"optionF":null,"userOption":null,"resultCode":null},{"sn":25,"uqnSn":22,"fillType":2,"itemTitle":"希望更新什么功能，可多选","optionA":"找工作","optionB":"买卖车辆","optionC":"学习从业资格证","optionD":"交通运输行业协会","optionE":null,"optionF":null,"userOption":null,"resultCode":null},{"sn":26,"uqnSn":22,"fillType":4,"itemTitle":"是否还需要其他说明","optionA":null,"optionB":null,"optionC":null,"optionD":null,"optionE":null,"optionF":null,"userOption":null,"resultCode":null}]
         * resultCode : null
         */

        private int sn;
        private Object qnSn;
        private long updateDate;
        private int qnTypeId;
        private int relSn;
        private String orgId;
        private String orgName;
        private String userId;
        private String userName;
        private String userMobile;
        private String idcNo;
        private String qnTitle;
        private Object qnDesc;
        private int mark;
        private Object resultCode;
        private List<UqItemListBean> uqItemList;

        public int getSn() {
            return sn;
        }

        public void setSn(int sn) {
            this.sn = sn;
        }

        public Object getQnSn() {
            return qnSn;
        }

        public void setQnSn(Object qnSn) {
            this.qnSn = qnSn;
        }

        public long getUpdateDate() {
            return updateDate;
        }

        public void setUpdateDate(long updateDate) {
            this.updateDate = updateDate;
        }

        public int getQnTypeId() {
            return qnTypeId;
        }

        public void setQnTypeId(int qnTypeId) {
            this.qnTypeId = qnTypeId;
        }

        public int getRelSn() {
            return relSn;
        }

        public void setRelSn(int relSn) {
            this.relSn = relSn;
        }

        public String getOrgId() {
            return orgId;
        }

        public void setOrgId(String orgId) {
            this.orgId = orgId;
        }

        public String getOrgName() {
            return orgName;
        }

        public void setOrgName(String orgName) {
            this.orgName = orgName;
        }

        public String getUserId() {
            return userId;
        }

        public void setUserId(String userId) {
            this.userId = userId;
        }

        public String getUserName() {
            return userName;
        }

        public void setUserName(String userName) {
            this.userName = userName;
        }

        public String getUserMobile() {
            return userMobile;
        }

        public void setUserMobile(String userMobile) {
            this.userMobile = userMobile;
        }

        public String getIdcNo() {
            return idcNo;
        }

        public void setIdcNo(String idcNo) {
            this.idcNo = idcNo;
        }

        public String getQnTitle() {
            return qnTitle;
        }

        public void setQnTitle(String qnTitle) {
            this.qnTitle = qnTitle;
        }

        public Object getQnDesc() {
            return qnDesc;
        }

        public void setQnDesc(Object qnDesc) {
            this.qnDesc = qnDesc;
        }

        public int getMark() {
            return mark;
        }

        public void setMark(int mark) {
            this.mark = mark;
        }

        public Object getResultCode() {
            return resultCode;
        }

        public void setResultCode(Object resultCode) {
            this.resultCode = resultCode;
        }

        public List<UqItemListBean> getUqItemList() {
            return uqItemList;
        }

        public void setUqItemList(List<UqItemListBean> uqItemList) {
            this.uqItemList = uqItemList;
        }

        public static class UqItemListBean  implements Serializable {
            /**
             * sn : 27
             * uqnSn : 22
             * fillType : 1
             * itemTitle : 课程打分（10分制）
             * optionA : 1-3
             * optionB : 4-6
             * optionC : 6-9
             * optionD : 10
             * optionE : null
             * optionF : null
             * userOption : null
             * resultCode : null
             */

            private int sn;
            private int uqnSn;
            private int fillType;
            private String itemTitle;
            private String optionA;
            private String optionB;
            private String optionC;
            private String optionD;
            private String optionE;
            private String optionF;
            private String userOption;
            private Object resultCode;
            private boolean isSelect;

            private int question_select=-1;//判断有没有 做题
            private int question_select1=-1;//判断有没有 做题
            private int question_select2=-1;//判断有没有 做题
            private int question_select3=-1;//判断有没有 做题
            private int question_select4=-1;//判断有没有 做题
            private int question_select5=-1;//判断有没有 做题
            private int question_select6=-1;//判断有没有 做题


            public boolean isSelect() {
                return isSelect;
            }

            public void setSelect(boolean select) {
                isSelect = select;
            }

            public int getQuestion_select() {
                return question_select;
            }

            public void setQuestion_select(int question_select) {
                this.question_select = question_select;
            }

            public int getQuestion_select1() {
                return question_select1;
            }

            public void setQuestion_select1(int question_select1) {
                this.question_select1 = question_select1;
            }

            public int getQuestion_select2() {
                return question_select2;
            }

            public void setQuestion_select2(int question_select2) {
                this.question_select2 = question_select2;
            }

            public int getQuestion_select3() {
                return question_select3;
            }

            public void setQuestion_select3(int question_select3) {
                this.question_select3 = question_select3;
            }

            public int getQuestion_select4() {
                return question_select4;
            }

            public void setQuestion_select4(int question_select4) {
                this.question_select4 = question_select4;
            }

            public int getQuestion_select5() {
                return question_select5;
            }

            public void setQuestion_select5(int question_select5) {
                this.question_select5 = question_select5;
            }

            public int getQuestion_select6() {
                return question_select6;
            }

            public void setQuestion_select6(int question_select6) {
                this.question_select6 = question_select6;
            }

            public int getSn() {
                return sn;
            }

            public void setSn(int sn) {
                this.sn = sn;
            }

            public int getUqnSn() {
                return uqnSn;
            }

            public void setUqnSn(int uqnSn) {
                this.uqnSn = uqnSn;
            }

            public int getFillType() {
                return fillType;
            }

            public void setFillType(int fillType) {
                this.fillType = fillType;
            }

            public String getItemTitle() {
                return itemTitle;
            }

            public void setItemTitle(String itemTitle) {
                this.itemTitle = itemTitle;
            }

            public String getOptionA() {
                return optionA;
            }

            public void setOptionA(String optionA) {
                this.optionA = optionA;
            }

            public String getOptionB() {
                return optionB;
            }

            public void setOptionB(String optionB) {
                this.optionB = optionB;
            }

            public String getOptionC() {
                return optionC;
            }

            public void setOptionC(String optionC) {
                this.optionC = optionC;
            }

            public String getOptionD() {
                return optionD;
            }

            public void setOptionD(String optionD) {
                this.optionD = optionD;
            }

            public String getOptionE() {
                return optionE;
            }

            public void setOptionE(String optionE) {
                this.optionE = optionE;
            }

            public String getOptionF() {
                return optionF;
            }

            public void setOptionF(String optionF) {
                this.optionF = optionF;
            }

            public String getUserOption() {
                return userOption;
            }

            public void setUserOption(String userOption) {
                this.userOption = userOption;
            }

            public Object getResultCode() {
                return resultCode;
            }

            public void setResultCode(Object resultCode) {
                this.resultCode = resultCode;
            }
        }
    }
}
